package com.zhentao.controller;

import com.zhentao.interfaceclass.LogInterface;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: SysMenuController
 * @Author: 振涛教育_Q
 * @Date: 2024/12/26 21:07
 */
@RestController
@RequestMapping("/user/info")
public class SysMenuController {


    @Autowired
    private SysPermissionService permissionService;

    /**
     * @description  动态查询菜单
     * @author 振涛教育_小Q
     * @date    2024/12/26 21:08
      * @param
     * @return com.zhentao.model.common.dtos.ResponseResult
     */
    @GetMapping("/menu/list")
    @LogInterface(value = "管理端--菜单查询")
    public ResponseResult menuList() {
        return permissionService.menuList();
    }
}
